package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmMaterialDTO;
import com.heima.model.wemedia.pojo.WmMaterial;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author by jojo
 * @Date 2022/3/1
 * @Description
 */
public interface WmMaterialService extends IService<WmMaterial> {
    /**
     * 上传图片接口
     * @param multipartFile
     * @return
     */
    ResponseResult uploadPicture(MultipartFile multipartFile);

    ResponseResult pageList(WmMaterialDTO dto);
    /**
     * 删除图片
     * @param id
     * @return
     */
    ResponseResult delPicture(Integer id);
    /**
     * 收藏与取消收藏
     * @param id
     * @param type
     * @return
     */
    ResponseResult updateStatus(Integer id, Short type);
}
